<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php if (!isset($title)) { echo _WELCOME_ADMIN_ ;} else { echo $title; }?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="nofollow" />
    <script src="<?php echo _BASE_URI_;?>js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/jquery-ui.min.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/datapicker/jquery.ui.core.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/datapicker/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/datapicker/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/jQuery-Timepicker-Addon/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
    <link href="<?php echo _BASE_URI_;?>css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo _BASE_URI_;?>css/backend.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo _BASE_URI_;?>js/jQuery-Timepicker-Addon/jquery-ui-timepicker-addon.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php echo _BASE_URI_;?>js/editor/nicEdit/nicEdit.js"></script>
    <script src="<?php echo _BASE_URI_;?>js/backendScript.js" type="text/javascript"></script>
    <script src="<?php echo _BASE_URI_;?>js/jquery.scrollTo-1.4.2-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
    </script>
</head>
<body>
<script type="text/javascript">
var refreshId = setInterval(function(){
     $('#heure_syst').load('../get_time.php');
}, 1000);
</script>
    <div id="wrapper-content">
        <div id="main">
            <div id="header">
                <a href="<?php echo _BASE_URI_;?>amdin/index.html" class="logo">Administration</a>
                <ul id="top-navigation">
                    <li><span><span><a href="<?php echo _BASE_URI_;?>index.html" target="_blank">Accueil</a></span></span></li>
                    <li <?php if( preg_match('#sites.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="sites.html">Sites</a></span></span></li>
                    <li <?php if( preg_match('#user.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="user.html">Utilisateurs</a></span></span></li>
                    <li <?php if( preg_match('#newsletter.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="newsletter.html">Newsletter</a></span></span></li>
                    <li <?php if( preg_match('#encheres.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="encheres.html">Ench&egrave;res</a></span></span></li>
                    <li <?php if( preg_match('#packs.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="packs.html">Packs</a></span></span></li>
                    <li <?php if( preg_match('#pub.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="pub.html">Pubs</a></span></span></li>
                    <li <?php if( preg_match('#faq.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="faq.html">F.A.Q</a></span></span></li>
                    <li <?php if( preg_match('#cms-page.html#', $link->requestURI())) echo ' class="active"';?>><span><span><a href="cms-page.html">CMS</a></span></span></li>
                </ul>
            </div>
            <div id="middle">
                <div id="left-column">
                    <h3>Gestion</h3>
                    <ul class="nav">
                        <?php if(isset($left_content)):?>
                        <?php foreach ($left_content as $key => $value):?>
                             <li class="elts"><a href="<?php echo _BASE_URI_;?>admin/<?php echo $key; ?>"><?php echo $value; ?></a></li>
                         <?php endforeach; ?>
                        <?php else:?>
                           <li class="last"><a href="index.html">Liste</a></li>
                        <?php endif;?>
                    </ul>
					<h3 class="heure_syst">Heure du Serveur</h3>
					<span id="heure_syst" class="heure_syst">
						<?php echo '<span class="date">'.date('d-m-Y').'</span><span class="heure">'.date(' H:i:s').'</span>' ?>
					</span>
                </div>
                <div id="center-column">
                
                    <?php echo $content; ?>
                    
                </div>
                <div id="right-column">
                    <strong class="h">INFORMATIONS</strong>
                    <div class="box">
                       <?php if(isset($right_content)):?>
                       <?php  echo $right_content; ?>
                       <?php else:?>
                            Bienvenue dans votre space d'administration.
                       <?php endif;?>
                    </div>
                </div>
            </div>
            <div id="footer"></div>
         </div>
    </div>
</body>
</html>
